<template>
	<view class="home">
		首页
		<tabBar selectedIndex = 0></tabBar>
		<button @click="logout">退出登录</button>
	</view>
</template>

<script>
	export default {
		onShow() {
			uni.hideTabBar({
				animation:false
			})
		},
		methods: {
			logout(){
				uni.removeStorageSync('identify')
				uni.reLaunch({
					url:'/pages/login/login'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.home{
		text-align: center;
		color: #00BAB2;
		margin-top: 20rpx;
		button{
			margin: 10rpx 0;
		}
	}
</style>
